import remove from './remove';

export default async function removeJobById(
	resolve,
	source,
	args,
	context,
	info
) {
	const jobId = args.filter?._id;
	await remove({ context, jobId });
	return resolve(source, args, context, info).then(() => ({ recordId: jobId }));
}
